<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">



<table width="100%">
	<tr align="center" class="firstrowtable">
		<td><strong>Total money</strong></td>
		<td><strong>Status</strong></td>
		<td width="30%"><strong>Order Date</strong></td>
		<td width="20%"><strong>Member ordered</strong></td>
		<td><strong>Edit</strong></td>
		<td><strong>Delete</strong></td>
	</tr>
	<c:forEach var ="item" items ="${requestScope.orders}">
	<tr align="center">
		
		<td>${item.totalmoney}$</td>
		<td>${item.orderstatus.orderstatusname}</td>
		<td>${item.orderdate}</td>
		<td>${item.user.firstname}</td>
		<td align="center"><a href="EditOrderJsp.do?orderid=${item.orderid}"><img src="images/btedit.png" alt="#" border="0" /></a></td>
		<td align="center"><a href ="DeleteOrder.do?orderid=${item.orderid}" onclick="return confirm('Are you sure you want to delete?')"><img src="images/btdelete.png" alt="#" border="0" /></a></td>		
	</tr>
	</c:forEach>
</table>
